import pymongo
import settings


class MysqlCon(object):
    """
    数据库链接类
    con_odsdb
    """

    def con_odsdb(self):
        connect = pymongo.MongoClient("mongodb://root@172.28.56.90:27017/")
        #mongodb://root@172.28.56.90:27017/?authSource=admin
        cursor = connect.cursor()
        print("链接数据库con_odsdb成功")
        return connect, cursor

    